﻿import QtQuick 2.12
import QtQuick.Window 2.12

Rectangle{
    // name this element root
    id:root
    // properties: <name>: <value>
    width: 1020; height: 540

    //color property
    color: "#D8D8D8";

    Image {
        id: rocket
        x:(parent.width - width)/2; y: 40
        source: "assets/background.png"
    }

    Text {
    // un-named element
    // reference element by id
        y: rocket.y + rocket.height + 20
        // reference root element
        width: root.width
        horizontalAlignment: Text.AlignHCenter
        text: 'Rocket'
    }
}
